import { request } from '@/lib/js/http'

export default {
  /**
   * @description 获取兑换商店详情
   * @returns
   */
  shopInfo(){
    return request.post('api/exchange/shop', { activityId: 0 })
  },

  /**
   * @description 执行兑换
   * @returns
   */
  doExchange(data: any){
    return request.post('api/exchange', data)
  },

  /**
   * @description 加载记录
   * @param data
   * @returns
   */
  loadRecord(data: any){
    return request.post('api/exchange/record', data)
  },

  /**
   * @description cdk兑换
   */
  cdkExchange(cdkey: string){
    return request.post('/api/tower/exchange/cdkey', { cdkey })
  }
}
